package com.lab.labspring.controller;


import com.lab.labspring.domain.TbCourse;
import com.lab.labspring.resp.CommonResp;
import com.lab.labspring.service.TbCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private TbCourseService courseService;

    @RequestMapping("/list")
    public List<TbCourse> getList(){
        return  courseService.list();
    }
}
